<?php if (!strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6')) echo '<?xml version="1.0" encoding="UTF-8"?>'. "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" xml:lang="<?php echo $lang; ?>">
<head>
<title><?php echo $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php if ($keywords): ?>
<meta name="keywords" content="<?php echo $keywords; ?>" />
<?php endif; ?>
<?php if ($description): ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php endif; ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon): ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php endif; ?>
<?php foreach ($links as $link): ?>
<link href="<?php echo str_replace('&', '&amp;', $link['href']); ?>" rel="<?php echo $link['rel']; ?>" />
<?php endforeach; ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/<?php echo $template; ?>/stylesheet/main.css" />
<?php foreach ($styles as $style): ?>
<link rel="<?php echo $style['rel']; ?>" type="text/css" href="<?php echo $style['href']; ?>" media="<?php echo $style['media']; ?>" />
<?php endforeach; ?>
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/common.js"></script>
<?php foreach ($scripts as $script): ?>
<script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php endforeach; ?>
<script type="text/javascript">
<!--
function bookmark(url, title) {
	if (window.sidebar) { // firefox
    	window.sidebar.addPanel(title, url, "");
	} else if(window.opera && window.print) { // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) {// ie
   		window.external.AddFavorite(url, title);
	}
}
//-->
</script>
</head>

<body>

	<div id="header">
      <div id="headerContent">        
          
          <div id="headerContentTop">
              <div id="logo">
                  <h1>Corner Furniture Homepage</h1>
              </div>
              
              <div id="languageOption">
                <ul>
                  <li class="LanguageName Active" id="first"><a href="#">Tiếng Việt</a></li>
                  <li class="LanguageName"><a href="#">English</a></li>
                </ul>
              </div>
                
              <div id="userControl">
                  <ul>
                    <li id="userSearch">
                        <fieldset>
                          <legend>Tim kiem:</legend>
                          <label>Tìm kiếm:</label>
                          <input size="25" class="TextBox"/>
                        </fieldset>
                    </li>
                    <li id="userInfo"><a href="#" id="myAccountLink">TÀI KHOẢN CỦA BẠN</a></li>
                  </ul>
              </div>
          </div>

          <div id="navigationBar" class="TitleBar">
              <div id="navigationContent" class="TitleBarContent">
                  <ul id="navigation" class="TitleBarCenter">
                      <li><a href="<?php echo $home; ?>" class="NavigationItems<?php echo $c_menu_item == 'home' ? ' Active' : ''; ?>">TRANG CHỦ</a></li>
                      <li><a href="<?php echo $m_product_link; ?>" class="NavigationItems<?php echo $c_menu_item == 'product' ? ' Active' : ''; ?>">SẢN PHẨM</a></li>
                      <li><a href="<?php echo $m_news_link; ?>" class="NavigationItems<?php echo $c_menu_item == 'news' ? ' Active' : ''; ?>">TIN TỨC/BÀI VIẾT</a></li>
                      <li><a href="" class="NavigationItems<?php echo $c_menu_item == 'wishlist' ? ' Active' : ''; ?>">BỘ SƯU TẬP CỦA BẠN</a></li>
                      <li><a href="<?php echo $contact; ?>" class="NavigationItems<?php echo $c_menu_item == 'contact' ? ' Active' : ''; ?>">LIÊN HỆ</a></li>
                  </ul>
              </div>
          </div>

          <div id="navigationPage">
              <ul>
              <?php foreach ($breadcrumbs as $idx => $breadcrumb): ?>
                <li class="Items<?php if ($idx >= count($breadcrumbs) - 1) echo ' LastItem'; ?>"><a href="<?php echo str_replace('&', '&amp;', $breadcrumb['href']); ?>"><?php echo $breadcrumb['text']; ?></a></li>
              <?php endforeach; ?>
              </ul>
          </div>
          
       </div>
   </div>
   <hr/>

